import request from '../utils/fetch'
export function selectList (data) {
  return request({
    url: '/admin/banner/admin/list',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getLinklistByType (data) {
  return request({
    url: '/admin/banner/admin/getLinklistByType',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function addBanner (data) {
  return request({
    url: '/admin/banner/add',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
export function updateBanner (data) {
  return request({
    url: '/admin/banner/update',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function xiaoxilibiao (data) {
  return request({
    url: '/admin/message/getMessageList',
    method: 'get',
    requestBody: 'body',
    loading: true,
    data: data
  })
}

export function yonghufankui (data) {
  return request({
    url: '/admin/feedback/getFeedbackList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function chakanxiangqing (data) {
  return request({
    url: '/admin/feedback/getFeedbackInfo',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function yiduxiaoxi (data) {
  return request({
    url: '/admin/message/batchRead',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}

// export function deleteOne (data) {
//   return request({
//     url: '/banner/deleteOne',
//     method: 'get',
//     requestBody: 'query',
//     loading: true,
//     params: data
//   })
// }
// export function updateBannerSort (data) {
//   return request({
//     url: '/banner/updateBannerSort',
//     method: 'post',
//     requestBody: 'query',
//     loading: true,
//     data: data
//   })
// }
export function updateState (data) {
  return request({
    url: '/admin/banner/status',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}



